
function [ dvf]=read_dvf_elastix_slice_toolbox(dvf_folder,slice);


% cd(folder);
% cd('DVF_slices')
load(sprintf('%s\\dvfs_slice_%d',dvf_folder, slice))

    dvf.u=(squeeze(dvf_tmp(:,:,:,1)));%single
    dvf.v=(squeeze(dvf_tmp(:,:,:,2)));%single
    dvf.w=(squeeze(dvf_tmp(:,:,:,3)));%single
    
    clear dvf_tmp
%     cd(folder)
    
end
